//
//  WJ_New_VC.m
//  WJBSApp
//
//  Created by dllo on 16/7/14.
//  Copyright © 2016年 王景伟. All rights reserved.
//

#import "WJ_New_VC.h"
#import "WJEssAndNewUpTableVC.h"

@interface WJ_New_VC ()

@end

@implementation WJ_New_VC

//每次进来都要执行
- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    self.tabBarController.hidesBottomBarWhenPushed = NO;
}

- (void)viewWillDisappear:(BOOL)animated
{
    [super viewWillDisappear:animated];
    self.tabBarController.hidesBottomBarWhenPushed = NO;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.navigationItem.title = @"新帖";
    
    [self createView];
    
}


- (void)createView
{
    //全部
    WJEssAndNewUpTableVC *allVc = [[WJEssAndNewUpTableVC alloc]init];
    allVc.title = @"全部";
    allVc.url = WJNewAllURL;
    [self addChildViewController:allVc];
    [allVc release];
    
    //视频
    WJEssAndNewUpTableVC *videoVc = [[WJEssAndNewUpTableVC alloc]init];
    videoVc.title = @"视频";
    videoVc.url = WJNewVideoURL;
    [self addChildViewController:videoVc];
    [videoVc release];
    
    //图片
    WJEssAndNewUpTableVC *pictureVc = [[WJEssAndNewUpTableVC alloc]init];
    pictureVc.title = @"图片";
    pictureVc.url = WJNewPictureURL;
    [self addChildViewController:pictureVc];
    [pictureVc release];
    
    //段子
    WJEssAndNewUpTableVC *textVc = [[WJEssAndNewUpTableVC alloc]init];
    textVc.title = @"段子";
    textVc.url = WJNewTextURL;
    [self addChildViewController:textVc];
    [textVc release];
    
    //网红
    WJEssAndNewUpTableVC *starVc = [[WJEssAndNewUpTableVC alloc]init];
    starVc.title = @"网红";
    starVc.url = WJNewStartURL;
    [self addChildViewController:starVc];
    [starVc release];
    
    //美女
    WJEssAndNewUpTableVC *girlVc = [[WJEssAndNewUpTableVC alloc]init];
    girlVc.title = @"美女";
    girlVc.url = WJNewGirlURL;
    [self addChildViewController:girlVc];
    [girlVc release];
    
    //冷知识
    WJEssAndNewUpTableVC *coldVc = [[WJEssAndNewUpTableVC alloc]init];
    coldVc.title = @"冷知识";
    coldVc.url = WJNewColdURL;
    [self addChildViewController:coldVc];
    [coldVc release];

    //游戏
    WJEssAndNewUpTableVC *gameVc = [[WJEssAndNewUpTableVC alloc]init];
    gameVc.title = @"游戏";
    gameVc.url = WJNewGameURL;
    [self addChildViewController:gameVc];
    [gameVc release];
    
    //声音
    WJEssAndNewUpTableVC *soundVc = [[WJEssAndNewUpTableVC alloc]init];
    soundVc.title = @"声音";
    soundVc.url = WJNewSoundURL;
    [self addChildViewController:soundVc];
    [soundVc release];

    
}




































- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}
@end
